<?php $this->load->helper('html');
		$this->load->helper('url');
 echo doctype();
 ?>
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">


<head>
			<!--sätter metainformationen-->
	<?php
	$meta = array(
		array('name' => 'robots', 'content' => 'no-cache'),
		array('name' => 'description', 'content' => 'My Great Site'),
		array('name' => 'keywords', 'content' => 'Studentbilar, biluthyrning, örebro'),
		array('name' => 'robots', 'content' => 'no-cache'),
		array('name' => 'Content-type', 'content' => 'text/html; charset=utf-8', 'type' => 'equiv'));
		
		echo meta($meta);	
	?>

			<!--genererar dynamisk titel-->
<title><?php echo $title;?></title>
			
			<!--sätter länkar till externa dokument-->
	<?php
		echo link_tag('feed', 'alternate', 'application/rss+xml', 'Studentbilar.se');
		echo link_tag('styles/main.css','stylesheet','text/css','css','screen');
		
		//sätter extra css för specefika sidor
		
		if (isset($cssData))
		{
				echo link_tag('styles/'.$cssData,'stylesheet','text/css','css','screen');
		}
		
		
		//kollar om javascript ska vara med i viewn.
		if(isset($jscript))
		{
			if($jscript==TRUE)
			{
			echo "<link rel=\"stylesheet\" href=\"".base_url()."js/css/custom-theme/jquery-ui-1.8.11.custom.css\" type=\"text/css\">
					<script src=\"".base_url()."js/jquery-1.5.1.min.js\" type=\"text/javascript\"></script>
					<script src=\"".base_url()."js/jquery-ui-1.8.11.custom.min.js\" type=\"text/javascript\"></script>
					<script src=\"".base_url()."js/studentbilar.js\" type=\"text/javascript\"></script>"
					;
			}
		}
		
	?>
	
	
	<style>

	#bookCar{
		display:block;
		position:absolute;
		right:10px;
		top:50px;
		z-index:1;
	}
	#bookCar a{
		color:black;
	}

	</style>
</head>

<body>

<!-- Begin Container -->
<!-- End Container -->
<!--<div id="sponsor_col"><h3>I samarbete med:</h3>
<img alt="Pressbyr&aring;n logo" height="150" width="150" src="images/pressbyran.png" />



</div>-->

<div id="container">
	
	<!-- Begin Masterhead -->
	<div id="masterhead" >
	<?php echo'<div id="bookCar">' .anchor('booking/search','Boka bil').'</div>';?>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockw		ave/cabs/flash/swflash.cab#version=8,0,0,0" width="930" height="150">
  	<param name="movie" value="<?php echo base_url()?>styles/bilder/head.swf" />
  	<param name="quality" value="high" />
  	<param name="allowScriptAccess" value="always" />
	<param name="wmode" value="transparent">
	<embed src="<?php echo base_url()?>styles/bilder/head.swf"
      quality="high"
      type="application/x-shockwave-flash"
      WMODE="transparent"
      width="930"
      height="150"
      pluginspage="http://get.adobe.com/se/flashplayer/"
      allowScriptAccess="always" />
</object></div>

	
	<!-- Begin Navigation -->
	<div id="navigation">
	<?php
	echo '<ul>';
	echo '<li>'.anchor('/start/index','Start').'</li>';
	echo '<li>'.anchor('start/info','Info').'</li>';
	echo '<li>'.anchor('start/nyheter','Nyheter').'</li>';
	echo '<li>'.anchor('start/bilar','Bilar').'</li>';
	echo '<li>'.anchor('start/partners','Partners').'</li>';
	echo '<li>'.anchor('start/kalender','Kalender').'</li>';
	echo '<li>'.anchor('start/kontakt','Kontakt').'</li>';
	
	if ($this->session->userdata('LoggedIn')&& !($this->session->userdata('admin')))
	{
		echo '<li class="MyAccount">'.anchor('user/userbookings','Mitt konto').'</li>';
	}
	echo '</ul>';	
		
		
		if ($this->session->userdata('LoggedIn')||$this->session->userdata('admin'))
		{
		echo '<div id="Logout">'. anchor('user/Logout','Logga ut').'</div>';
		}
		else
		{
		echo '<div id="Login">'.anchor('user/Login','Logga in').'</div>';
		}

	?>
	</div>

	<!-- End Navigation -->
	<div id="maincontent">
